"""
@author: Zhang Wenzhou
@file: teacher_info.py
@time: 2023/3/2 0002 9:47:57
"""
# 路由使用蓝图管理
# /teacher  --index()
# 返回内容 -- "this is teacher info"

## 使用蓝图管理路由
from flask import Blueprint

# 生成蓝图对象
teacher_bp = Blueprint("teacher_bp", __name__, url_prefix="/v1")

# 把路由绑到蓝图对象
@teacher_bp.route("/teacher")
def index():
    return "this is teacher info"